import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    redirect: 'home',
  },
  {
    path: '/',
    name: 'index',
    component: () => import(/* webpackChunkName: "about" */ '../views/index/index.vue'),
    children:[
      {
        path: '/home',
        name: 'home',
        component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue'),
        meta:{
          title:'园域大数据'
        }
      },
      {
        path: '/project1',
        name: 'project1',
        component: () => import(/* webpackChunkName: "about" */ '../views/project/project1.vue'),
        meta:{
          title:'产业链大数据招商云'
        }
      },
      {
        path: '/project2',
        name: 'project2',
        component: () => import(/* webpackChunkName: "about" */ '../views/project/project2.vue'),
        meta:{
          title:'区域产业链投资与招商网'
        }
      },
      {
        path: '/project3',
        name: 'project3',
        component: () => import(/* webpackChunkName: "about" */ '../views/project/project3.vue'),
        meta:{
          title:'一码投'
        }
      },
      {
        path: '/project4',
        name: 'project4',
        component: () => import(/* webpackChunkName: "about" */ '../views/project/project4.vue'),
        meta:{
          title:'产业链数字化赋能中心'
        }
      },
      {
        path: '/project5',
        name: 'project5',
        component: () => import(/* webpackChunkName: "about" */ '../views/project/project5.vue'),
        meta:{
          title:'招商目标尽调'
        }
      },
      {
        path: '/project6',
        name: 'project6',
        component: () => import(/* webpackChunkName: "about" */ '../views/project/project6.vue'),
        meta:{
          title:'招商培训'
        }
      },
      {
        path: '/project7',
        name: 'project7',
        component: () => import(/* webpackChunkName: "about" */ '../views/project/project7.vue'),
        meta:{
          title:'招商项目精包装'
        }
      },
      {
        path: '/about',
        name: 'about',
        component: () => import(/* webpackChunkName: "about" */ '../views/about.vue'),
        meta:{
          title:'关于我们'
        }
      },
      {
        path: '/experience',
        name: 'experience',
        component: () => import(/* webpackChunkName: "about" */ '../views/experience/experience.vue'),
        meta:{
          title:'咨询'
        }
      },
    ]
  },
]

const router = new VueRouter({
  base: process.env.BASE_URL,
  routes
})

export default router
